﻿<!DOCTYPE html>
<html>
<head>
<title>@ViewBag.Title</title>
<meta charset="utf-8" />
<link href="@Url.Content("~/Content/manage-pub.css")" rel="stylesheet" type="text/css" />
@RenderSection("Css", false)
</head>

<body>
<aside class="sidebar">
	<h1>@ViewBag.Setup.SiteName</h1>
@if (ViewBag.User != null)
{
	<nav class="nav">
		<h2>功能</h2>
		<ul>
			<li><a href="@Url.Content("~")" target="_blank">网站首页</a></li>
			<li><a href="@Url.Content("~/Manage_Home/Index")">后台首页</a></li>
			<li><a href="@Url.Content("~/User/Logout")">退出</a></li>
		</ul>
		<h2>全局设置</h2>
		<ul>
			<li><a href="@Url.Content("~/Manage_Setup/Edit")">网站设置</a></li>
			<li><a href="@Url.Content("~/Manage_Category/Create")">添加分类</a></li>
			<li><a href="@Url.Content("~/Manage_Category/List")">分类管理</a></li>
			<li><a href="@Url.Content("~/Manage_Link/Create")">添加链接</a></li>
			<li><a href="@Url.Content("~/Manage_Link/List")">链接管理</a></li>
		</ul>
		<h2>文章</h2>
		<ul>
			<li><a href="@Url.Content("~/Manage_Article/Create")">发表文章</a></li>
			<li><a href="@Url.Content("~/Manage_Article/List")">文章管理</a></li>
		</ul>
		<h2>评论</h2>
		<ul>
			<li><a href="@Url.Content("~/Manage_Comment/List")">评论管理</a></li>
		</ul>
		<h2>用户</h2>
		<ul>
			<li><a href="@Url.Content("~/Manage_User/Create")">创建用户</a></li>
			<li><a href="@Url.Content("~/Manage_User/List")">用户管理</a></li>
		</ul>
	</nav>
}
</aside>
<div class="body clearfix">
	<div class="main clearfix">@RenderBody()</div>
	<div class="footer clearfix">
		<div class="poweredby">Powered by <a href="#">TidyBlog 2.0 Beta</a></div>
		<div class="copyright">Copyright &copy; 2009-2012 <a href="#">Heero's Blog</a></div>
	</div>
</div>
<script src="http://localhost:4848/jraiser2.js"></script>
<script>
jraiser.config({
	debug: true,
	libPath: 'http://localhost:4848/',
	appPath: '/Scripts/app/'
});
</script>
@RenderSection("Script", false)
<!-- Execute in @ViewBag.ExecTime ms -->
</body>
</html>